package cc.co.cutenimy.nimyexplore.rcp.views.connection;

import org.eclipse.jface.action.Action;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IViewActionDelegate;
import org.eclipse.ui.IViewPart;

import cc.co.cutenimy.nimyexplore.rcp.views.ConnectionsView;

public abstract class AbstractConnectionAction extends Action implements
		IViewActionDelegate {
	private ConnectionsView view;

	public void init(IViewPart view) {
		this.view = (ConnectionsView) view;
	}

	public ConnectionsView getView() {
		return view;
	}

	protected Shell getShell() {
		return getView().getSite().getShell();
	}

}
